<?php
namespace Admin\Controller;
use Think\Controller;
class IndexController extends CommonController {
    public function index(){
    	$this->title = '后台首页';
       $data = array();
       $data['os'] = $this->Ifos();
       $data['time'] = gmdate("Y年m月d日 h:i:s",time());
       if (get_cfg_var("safemode")) {
       	 	$data['anquan'] = '是';
       }else{
       		$data['anquan'] = '否';
       }
       $this->indexclass = 'active';
       $this->server = $data; 
       $this->display(':index');
    }




    public function tiaozhuan () {
            $this->display(':tiaozhuan');
    }


    /**
     * [Ifos 判断服务器系统]
     */
    private function Ifos () {
    	if(strtolower(substr(PHP_OS, 0, 3)) == 'win'){
            return 'windows';
        }else{
            return 'linux';
        }
    }
}